FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.4.11  |  FHIR Version n/a  User: [n/a]

Resource StructureMap/FHIR Server from package hl7.fhir.uv.xver#current (47 ms)

Package hl7.fhir.uv.xver
Type StructureMap
Id Id
FHIR Version R5
Source http://hl7.org/fhir/extensions/https://build.fhir.org/ig/HL7/fhir-cross-version/StructureMap-CommunicationRequest2to3.html
Url http://hl7.org/fhir/StructureMap/CommunicationRequest2to3
Version 0.1.0
Status active
Date 2024-02-22T03:16:50+00:00
Name CommunicationRequest2to3
Title CommunicationRequest Transforms: R2 to R3
Experimental False
Realm uv
Authority hl7
Description CommunicationRequestTransformsR2toR3

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

/// url = 'http://hl7.org/fhir/StructureMap/CommunicationRequest2to3'
/// name = 'CommunicationRequest2to3'
/// title = 'CommunicationRequest Transforms: R2 to R3'
/// status = 'active'

uses "http://hl7.org/fhir/1.0/CommunicationRequest" alias CommunicationRequestR2 as source
uses "http://hl7.org/fhir/3.0/CommunicationRequest" alias CommunicationRequest as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

group CommunicationRequest(source src : CommunicationRequestR2, target tgt : CommunicationRequest) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier "CommunicationRequest-identifier";
  src.category -> tgt.category "CommunicationRequest-category";
  src.sender -> tgt.sender "CommunicationRequest-sender";
  src.recipient -> tgt.recipient "CommunicationRequest-recipient";
  src.payload as vs0 -> tgt.payload as vt0 then cmrPayload(vs0, vt0) "CommunicationRequest-payload";
  src.medium -> tgt.medium "CommunicationRequest-medium";
  src.requester -> tgt.requester "CommunicationRequest-requester";
  src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/CommunicationRequest.status-R2toR3', 'code') "CommunicationRequest-status";
  src.encounter -> tgt.context "CommunicationRequest-context";
  src.scheduled -> tgt.occurrence "CommunicationRequest-scheduled";
  src.reason -> tgt.reasonCode "CommunicationRequest-reason";
  src.requestedOn -> tgt.authoredOn "CommunicationRequest-requestedOn";
  src.subject -> tgt.subject "CommunicationRequest-subject";
  src.priority -> tgt.priority "CommunicationRequest-priority";
}

group cmrPayload(source src, target tgt) {
  src.content -> tgt.content "payload-content";
}


Source

{
  "resourceType" : "StructureMap",
  "id" : "CommunicationRequest2to3",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/CommunicationRequest2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'CommunicationRequest2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'CommunicationRequest Transforms: R2 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/1.0/CommunicationRequest<span style=\"color: navy\">&quot; </span><b>alias </b>CommunicationRequestR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/3.0/CommunicationRequest<span style=\"color: navy\">&quot; </span><b>alias </b>CommunicationRequest <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">&quot;\r\n</span>\r\n<b>group </b>CommunicationRequest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>CommunicationRequestR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>CommunicationRequest<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier <i>&quot;CommunicationRequest-identifier&quot;</i><span style=\"color: navy\">;</span>\r\n src.category<span style=\"color: navy\"><b> -&gt; </b></span>tgt.category <i>&quot;CommunicationRequest-category&quot;</i><span style=\"color: navy\">;</span>\r\n src.sender<span style=\"color: navy\"><b> -&gt; </b></span>tgt.sender <i>&quot;CommunicationRequest-sender&quot;</i><span style=\"color: navy\">;</span>\r\n src.recipient<span style=\"color: navy\"><b> -&gt; </b></span>tgt.recipient <i>&quot;CommunicationRequest-recipient&quot;</i><span style=\"color: navy\">;</span>\r\n src.payload<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.payload<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>cmrPayload<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span> <i>&quot;CommunicationRequest-payload&quot;</i><span style=\"color: navy\">;</span>\r\n src.medium<span style=\"color: navy\"><b> -&gt; </b></span>tgt.medium <i>&quot;CommunicationRequest-medium&quot;</i><span style=\"color: navy\">;</span>\r\n src.requester<span style=\"color: navy\"><b> -&gt; </b></span>tgt.requester <i>&quot;CommunicationRequest-requester&quot;</i><span style=\"color: navy\">;</span>\r\n src.status<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'http://hl7.org/fhir/ConceptMap/CommunicationRequest.status-R2toR3'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'code'</span><span style=\"color: navy\">)</span> <i>&quot;CommunicationRequest-status&quot;</i><span style=\"color: navy\">;</span>\r\n src.encounter<span style=\"color: navy\"><b> -&gt; </b></span>tgt.context <i>&quot;CommunicationRequest-context&quot;</i><span style=\"color: navy\">;</span>\r\n src.scheduled<span style=\"color: navy\"><b> -&gt; </b></span>tgt.occurrence <i>&quot;CommunicationRequest-scheduled&quot;</i><span style=\"color: navy\">;</span>\r\n src.reason<span style=\"color: navy\"><b> -&gt; </b></span>tgt.reasonCode <i>&quot;CommunicationRequest-reason&quot;</i><span style=\"color: navy\">;</span>\r\n src.requestedOn<span style=\"color: navy\"><b> -&gt; </b></span>tgt.authoredOn <i>&quot;CommunicationRequest-requestedOn&quot;</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -&gt; </b></span>tgt.subject <i>&quot;CommunicationRequest-subject&quot;</i><span style=\"color: navy\">;</span>\r\n src.priority<span style=\"color: navy\"><b> -&gt; </b></span>tgt.priority <i>&quot;CommunicationRequest-priority&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>cmrPayload<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> src.content<span style=\"color: navy\"><b> -&gt; </b></span>tgt.content <i>&quot;payload-content&quot;</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "draft",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/CommunicationRequest2to3",
  "version" : "0.1.0",
  "name" : "CommunicationRequest2to3",
  "title" : "CommunicationRequest Transforms: R2 to R3",
  "status" : "active",
  "date" : "2024-02-22T03:16:50+00:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "CommunicationRequestTransformsR2toR3",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/1.0/CommunicationRequest",
      "mode" : "source",
      "alias" : "CommunicationRequestR2"
    },
    {
      "url" : "http://hl7.org/fhir/3.0/CommunicationRequest",
      "mode" : "target",
      "alias" : "CommunicationRequest"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*2to3"
  ],
  "group" : [
    {
      "name" : "CommunicationRequest",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "CommunicationRequestR2",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "CommunicationRequest",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "CommunicationRequest-identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-category",
          "source" : [
            {
              "context" : "src",
              "element" : "category",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "category",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-sender",
          "source" : [
            {
              "context" : "src",
              "element" : "sender",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "sender",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-recipient",
          "source" : [
            {
              "context" : "src",
              "element" : "recipient",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "recipient",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-payload",
          "source" : [
            {
              "context" : "src",
              "element" : "payload",
              "variable" : "vs0"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "payload",
              "variable" : "vt0"
            }
          ],
          "dependent" : [
            {
              "name" : "cmrPayload",
              "parameter" : [
                {
                  "valueId" : "vs0"
                },
                {
                  "valueId" : "vt0"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-medium",
          "source" : [
            {
              "context" : "src",
              "element" : "medium",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "medium",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-requester",
          "source" : [
            {
              "context" : "src",
              "element" : "requester",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "requester",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-status",
          "source" : [
            {
              "context" : "src",
              "element" : "status",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "status",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "http://hl7.org/fhir/ConceptMap/CommunicationRequest.status-R2toR3"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-context",
          "source" : [
            {
              "context" : "src",
              "element" : "encounter",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "context",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-scheduled",
          "source" : [
            {
              "context" : "src",
              "element" : "scheduled",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "occurrence",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-reason",
          "source" : [
            {
              "context" : "src",
              "element" : "reason",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "reasonCode",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-requestedOn",
          "source" : [
            {
              "context" : "src",
              "element" : "requestedOn",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "authoredOn",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-subject",
          "source" : [
            {
              "context" : "src",
              "element" : "subject",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "subject",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "CommunicationRequest-priority",
          "source" : [
            {
              "context" : "src",
              "element" : "priority",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "priority",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "name" : "cmrPayload",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "payload-content",
          "source" : [
            {
              "context" : "src",
              "element" : "content",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "content",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.